//
//  XQEmergencyHeaderView.swift
//  Spark Peso
//
//  Created by 小琦 on 2025/2/11.
//

import UIKit

class XQEmergencyHeaderView: UIView {
    
    private lazy var contentLb : UILabel = {
        let lb = UILabel()
        lb.textColor = .xq_black
        lb.font = UIFont.systemFont(ofSize: 14, weight: .medium)
        return lb
    }()
    
    var content : String? = "" {
        didSet {
            self.contentLb.text = content
        }
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.isUserInteractionEnabled = true
        makeUI()
        makeConstraints()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        makeUI()
        makeConstraints()
    }
    
    private func makeUI() {
        self.addSubview(self.contentLb)
    }
    
    private func makeConstraints() {
        self.contentLb.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.left.equalTo(17)
        }
    }

}
